const mysql = require('mysql2');
const mysqlConfig = require("./mysql.config");

// 初始化mysql连接
const connection = mysql.createConnection(mysqlConfig);

// 连接数据库
connection.connect();

module.exports = connection;